package com.letoken.platform.admin.enums;

public enum EnumRefundAmountStatus {
    STATUS_0(0,"默认"),
    STATUS_1(1,"退款中"),
    STATUS_2(2,"退款成功"),
    STATUS_3(3,"拒绝退款"),
    STATUS_99(99,"");

    private Integer code;
    private String msg;

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    EnumRefundAmountStatus(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public static EnumRefundAmountStatus getInstance(Integer code){
        EnumRefundAmountStatus cause = EnumRefundAmountStatus.valueOf("STATUS_" + code);
        return cause == null ? STATUS_99 : cause;
    }
}
